<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="X-UA-Compatible" content="IE=9">
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
  {template header_static.html}
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/animate.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/owl.carousel.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/owl.theme.default.min.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/bootstrap.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/bootstrap-paginator.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/global.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/css.css">
  <script src="{HOME_THEME_PATH}js/jquery.min.js"></script>
  <script src="{HOME_THEME_PATH}js/owl.carousel.min.js"></script>
  <script src="{HOME_THEME_PATH}js/bootstrap.js"></script>
  <script src="{HOME_THEME_PATH}js/html5shiv.js"></script>
  <script src="{HOME_THEME_PATH}js/respond.js"></script>
  <script src="{HOME_THEME_PATH}js/global.js"></script>
  <script src="{HOME_THEME_PATH}js/function.js"></script>
</head>

<body>
  {template nav_contact.html}
  {template header.html}
  <?php $neiyebanner=dr_site_value('neiyebanner');?>
    <div id="banner">
      <?php if ($neiyebanner) { $key=0; foreach ($neiyebanner as $v) { ?>
          {if $key==3}
          <a><img src="{dr_get_file($v[2])}" alt="{usu_fanyi($cat['name'], $language)}"></a> 
          {/if}
      <?php  $key++; } } ?> 
      <style>
          #banner a img{
              width: 100%;
          }
      </style>
    </div>

  <div id="content" class="content1">
    <div class="container">
      <div class="row">
        <div class="inside col-sm-3 col-xs-12">
          <h2> <span>{usu_fanyi('About Us', $language)}</span>
            <!-- <p class="hidden-xs">{usu_fanyi('Popular Categories', $language)}</p> -->
          </h2>
          <ul class="sidemenu">
            {category module=share pid=3}
            <li class="sub1">
                <a class="sub1_a sl" href="{dr_url_rel($t.url, SITE_URL)}">{usu_fanyi($t.name, $language)}
                    <i class="right-icon"><img src="{HOME_THEME_PATH}picture/right.png" alt="{usu_fanyi($t.name, $language)}"></i>
                </a> 
            </li>
            {/category}
          </ul>
          <?php $nycontactus=dr_site_value('nycontactus');?>
          <?php $nycontactustp=dr_site_value('nycontactustp');?>
          <div class="inside-bottom hidden-xs">
            <p><img src="{dr_get_file($nycontactustp)}" alt=""></p>
            <ul>
            <?php if ($nycontactus) { $key=0; foreach ($nycontactus as $v) { ?>
              <li>{usu_fanyi($v[1], $language)}：{$v[2]}</li>
              <?php  $key++; } } ?>
            </ul>
          </div>
        </div>
        <div class="col-sm-9 col-xs-12 main">
          <div class="crumb hidden-xs"><i><img src="{HOME_THEME_PATH}picture/location.png" alt=""></i>
            <span> 
                <a href='/' class='crumb'>HOME</a> {dr_catpos($catid,'',true,'&gt; <a href="[url]">[name]</a>')}
            </span>
          </div>
          <div class="article">
            <form method="POST" class="form-horizontal" enctype="multipart/form-data"
              action="/7385/home/Lists/gbook_submit.html">
              <div class="form-group">
                <label class="col-sm-2 control-label">标题</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="attr_1" name="attr_1" value="">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">姓名</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="attr_2" name="attr_2" value="">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">手机</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="attr_3" name="attr_3" value="">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">邮箱</label>
                <div class="col-sm-9">
                  <input type="text" class="form-control" id="attr_4" name="attr_4" value="">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">内容</label>
                <div class="col-sm-9">
                  <textarea class="form-control" id="attr_5" name="attr_5" value=""></textarea>
                </div>
              </div>

              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <button type="submit" class="btn btn-default" onclick="return checkForm()">确认提交</button>
                </div>
              </div>
              <input type="hidden" name="typeid" value="6"><input type="hidden"
                name="__token__3fb925fc83af96aa3d0a5a7f986a7ac9" id="3fb925fc83af96aa3d0a5a7f986a7ac9" value="">
              <script type="text/javascript">
                function ey_fleshVerify(id) {
                  var src = "/7385/index.php?m=api&c=Ajax&a=vertify&type=guestbook&lang=cn";
                  if (src.indexOf('?') > -1) {
                    src += '&';
                  } else {
                    src += '?';
                  }
                  src += 'r=' + Math.floor(Math.random() * 100);
                  document.getElementById(id).src = src;
                }

                function f9a2a37d7b9977d59a6d4c93f86506b2c() {
                  //步骤一:创建异步对象
                  var ajax = new XMLHttpRequest();
                  //步骤二:设置请求的url参数,参数一是请求的类型,参数二是请求的url,可以带参数,动态的传递参数starName到服务端
                  ajax.open("get",
                    "/7385/index.php?m=api&c=Ajax&a=get_token&name=__token__3fb925fc83af96aa3d0a5a7f986a7ac9", true);
                  // 给头部添加ajax信息
                  ajax.setRequestHeader("X-Requested-With", "XMLHttpRequest");
                  //步骤三:发送请求+数据
                  ajax.send();
                  //步骤四:注册事件 onreadystatechange 状态改变就会调用
                  ajax.onreadystatechange = function () {
                    //步骤五 如果能够进到这个判断 说明 数据 完美的回来了,并且请求的页面是存在的
                    if (ajax.readyState == 4 && ajax.status == 200) {
                      document.getElementById("3fb925fc83af96aa3d0a5a7f986a7ac9").value = ajax.responseText;
                    }
                  }
                }
                f9a2a37d7b9977d59a6d4c93f86506b2c();
              </script>
            </form>
            <script type="text/javascript">
              function checkForm() {
                if (document.getElementById('attr_2').value.length == 0) {
                  alert('请输入您的姓名');
                  return false;
                }
                if (document.getElementById('attr_3').value.length == 0) {
                  alert('请输入您的手机');
                  return false;
                }
                document.getElementById('myform').submit();
              }
            </script>

            <script src="{HOME_THEME_PATH}js/layer.js"></script>

          </div>
        </div>
      </div>
    </div>
  </div>
  {template footer.html}

</body>

</html>